package com.liukai.todo_android.common.utils;

import android.util.Log;

/**
 * @author ：liukai
 * @date ：Created in 2021/8/8 3:01 下午
 * @description：日志工具类
 * @modified By：
 * @version: $
 */
public class LogUtils {

    public static int currentLev = 4;
    public static final int DEBUG_LEV = 4;
    public static final int INFO_LEV = 4;
    public static final int WARNING_LEV = 4;
    public static final int ERROR_LEV = 4;

    public static void d(Class clazz, String log) {
        if (currentLev >= DEBUG_LEV) {
            Log.d(clazz.getSimpleName() + "==========================>", log);
        }
    }

    public static void i(Class clazz, String log) {
        if (currentLev >= INFO_LEV) {
            Log.i(clazz.getSimpleName() + "==========================>", log);
        }
    }

    public static void w(Class clazz, String log) {
        if (currentLev >= WARNING_LEV) {
            Log.w(clazz.getSimpleName() + "==========================>", log);
        }
    }

    public static void e(Class clazz, String log) {
        if (currentLev >= ERROR_LEV) {
            Log.e(clazz.getSimpleName() + "==========================>", log);
        }
    }

}
